package com.adcc.ags.cgw.entity;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.google.common.base.Optional;

import java.io.Serializable;

/**
 * 基类实体
 */
public abstract class BaseEntity implements Serializable{

    public abstract Optional<BaseEntity> formatJson(String json) throws Exception;

    public abstract String toJSON() throws JsonProcessingException;
}
